﻿namespace DosTexPrj.Core.Models
{
    using System.Collections.Generic;
    using System.Runtime.Serialization;

    [DataContract]
    public class Supplier : EntityBaseWithIntIDType
    {
        /// <summary>
        /// Gets or sets SupplierName
        /// </summary>
        [DataMember]
        public virtual string SupplierName { get; set; }

        /// <summary>
        /// Gets or sets Address
        /// </summary>
        [DataMember]
        public virtual string Address { get; set; }

        /// <summary>
        /// Gets or sets Phone
        /// </summary>
        [DataMember]
        public virtual string Phone { get; set; }

        /// <summary>
        /// Gets or sets YarnOrders
        /// </summary>
        [DataMember]
        public virtual IList<YarnOrder> YarnOrders { get; set; }

        public Supplier()
        {
            this.YarnOrders = new List<YarnOrder>();
        }
    }
}